-- GENERATED SPELL FOR [Bloodwarder Mender] --


function spell0_19633(pUnit, Event) --@Greater Heal,Heal--
pUnit:FullCastSpellOnTarget(35096,pUnit)
pUnit:RegisterEvent('Sorts_19633', 3500, 1)
end

function spell1_19633(pUnit, Event) --@Holy Fury,n/a--
pUnit:FullCastSpellOnTarget(34809,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19633', 609, 1)
end

function spell2_19633(pUnit, Event) --@Mind Blast,n/a--
pUnit:FullCastSpellOnTarget(17194,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19633', 1500, 1)
end

function spell3_19633(pUnit, Event) --@Mind Blast,n/a--
pUnit:FullCastSpellOnTarget(17287,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19633', 1500, 1)
end

function Sorts_19633(pUnit, Event)
local choix_sorts_19633 = math.random(0, 3)
if choix_sorts_19633 == 0 then
pUnit:RegisterEvent('spell0_19633', 1, 1)
end
if choix_sorts_19633 == 1 then
pUnit:RegisterEvent('spell1_19633', 1, 1)
end
if choix_sorts_19633 == 2 then
pUnit:RegisterEvent('spell2_19633', 1, 1)
end
if choix_sorts_19633 == 3 then
pUnit:RegisterEvent('spell3_19633', 1, 1)
end
end

function mob19633_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19633', math.random(1500, 3000), 1)
end

function mob19633_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19633_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19633_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19633, 1, 'mob19633_Action')
RegisterUnitEvent(19633, 2, 'mob19633_Leave')
RegisterUnitEvent(19633, 3, 'mob19633_Kill')
RegisterUnitEvent(19633, 4, 'mob19633_Die')
